/* Hero Section Styles for Projects */
/* Reusable styles for project pages like Laguna Bonita */

.hero-section {
    width: 100%;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-section .carousel {
    height: 100%;
}

.hero-section .carousel-inner {
    height: 100%;
}

.hero-section .carousel-item {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero-section .carousel-item img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-image {
    position: relative;
    z-index: 1;
    height: 100%;
    object-fit: cover;
    width: 100%;
    transition: transform 8s ease-in-out;
    transform: scale(1);
}

.hero-section .carousel-item.active .hero-image {
    transform: scale(1.1);
}

.hero-section .carousel-item {
    transition: opacity 0.6s ease-in-out;
}

.hero-section .carousel-item:not(.active) {
    opacity: 0;
}

.hero-section .carousel-item.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
    pointer-events: none;
}

.hero-logo {
    max-height: 320px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 11;
    display: block;
    margin: 10px auto;
    flex-shrink: 0;
}

.hero-section .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    padding: 0 20px;
    overflow: visible !important;
}

.hero-content-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 90%;
    margin: 0 auto;
    overflow: visible !important;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 6;
}

.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('../img/overlay-bottom.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: bottom center;
    z-index: 6;
    pointer-events: none;
}

.hero-balloon {
    position: absolute;
    bottom: 40px;
    left: calc(100% + 30px);
    background: #fb5607;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    z-index: 15;
    box-shadow: 0 6px 20px rgba(251, 86, 7, 0.4);
    animation: floatBalloon 3s ease-in-out infinite;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-balloon::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fb5607;
}

@keyframes floatBalloon {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-12px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}



.hero-balloon-cta {
    position: absolute;
    top: 40px;
    right: calc(100% + 30px);
    background: white;
    color: #fb5607;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    z-index: 15;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    animation: floatBalloonReverse 3s ease-in-out infinite;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-balloon-cta:hover {
    transform: scale(1.05) translateY(-5px);
    color: #fb5607;
    background: #f8f8f8;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.hero-balloon-cta::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid white;
}

@media (max-width: 1199px) {

    .hero-balloon,
    .hero-balloon-cta {
        position: relative;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 15px auto;
        display: inline-block;
        white-space: normal;
        max-width: 90%;
        order: 10;
        padding: 12px 24px;
        font-size: 16px;
    }

    .hero-balloon::after,
    .hero-balloon-cta::after {
        display: none;
    }

    .hero-balloon-cta {
        order: 11;
    }
}

@keyframes floatBalloonReverse {
    0% {
        transform: translateY(0px) rotate(2deg);
    }

    50% {
        transform: translateY(-12px) rotate(-2deg);
    }

    100% {
        transform: translateY(0px) rotate(2deg);
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 768px) {
    .hero-section {
        height: 80vh !important;
    }

    .hero-section .carousel-caption {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-logo {
        width: auto !important;
        height: auto !important;
        max-width: 80% !important;
        max-height: 140px !important;
        margin: 10px auto !important;
        display: block !important;
        transform: none !important;
    }

    #hero-tagline {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto 0 !important;
        font-size: 24px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
    }

    #hero-location {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
    }

    .hero-logo {
        min-height: 100px !important;
        transform: scale(1.6) !important;
        margin: 35px auto !important;
    }

    #hero-tagline {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 75vh !important;
    }

    .hero-logo {
        max-height: 120px !important;
        transform: none !important;
        margin: 10px auto !important;
    }

    #hero-tagline {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 21px !important;
        line-height: 1.1 !important;
        padding: 0 5px !important;
    }

    .hero-overlay-bottom {
        height: 100px !important;
    }
}

/* Gallery Section Styles */
.gallery-section {
    padding: 80px 0;
    background-color: #ff5206;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.gallery-modal-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.gallery-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: galleryZoom 0.3s ease-out;
}

.gallery-close-modal {
    position: fixed;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gallery-close-modal:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes galleryZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Gallery Styles */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .gallery-close-modal {
        top: 20px;
        right: 20px;
        font-size: 40px;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-modal-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 4px;
    }

    .gallery-close-modal {
        top: 15px;
        right: 15px;
        font-size: 35px;
        width: 55px;
        height: 55px;
    }
}

/* Management Image Container Styles */
.management-image-container {
    margin-top: 20px;
    text-align: center;
}

.responsive-management-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.responsive-management-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
}

.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoom 0.3s ease-out;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    background-color: transparent;
}

.close-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.close-modal:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes zoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Modal Styles */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .close-modal {
        top: 15px;
        right: 15px;
        font-size: 35px;
        width: 55px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 100vw;
        max-height: 100vh;
        border-radius: 4px;
    }

    .close-modal {
        top: 10px;
        right: 10px;
        font-size: 25px;
        width: 45px;
        height: 45px;
    }
}

/* Service Section Styles */
.service-section {
    position: relative;
    padding: 80px 0;
}

.service-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background-image: url('../img/overlay-top2.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    .service-overlay-top {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .service-overlay-top {
        height: 120px;
    }
}